/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package tdtest.action;

import tdtest.data.DataObject;
import tdtest.data.TDGroup;

/**
 *
 * @author sutter
 */
public class RemoveGroupItem<T extends DataObject> implements Action {
	
	private TDGroup<T> group;
	private T data;
			
	public RemoveGroupItem(TDGroup<T> group, T data) {
		this.group = group;
		this.data = data;
	}
	
	public void run() {
		group.groupItems.remove(data);
		group.onUpdate();
	}
}
